package com.shop.service;

import com.shop.pojo.pms.Pms_Sku_Info;
import com.shop.pojo.pms.Pms_Spu_Info;
import com.shop.utils.LayuiUtils;
import com.shop.utils.R;
import com.shop.vo.SkuItemVo;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;

public interface Pms_SkuInfo_Service {

    public SkuItemVo item(Long skuId);//查询商品详情


    void saveSkuInfo(Pms_Sku_Info pms_sku_info);//添加sku信息

    LayuiUtils<Pms_Sku_Info> findAllSkuQuery(Integer page,Pms_Sku_Info pms_sku_info,String price);//多条件分页查询sku信息
    R  findAllSkuInfoBySkuId(Long skuId);//根据skuid来查询当前sku下的全部商品
    //根据商品的sku_Id查询出该商品信息
    Pms_Sku_Info get_web_SkuInfo_ByID(Long skuId);
    //根据商品的ID查询商品的最新价格
    BigDecimal getZuiXinPrice(long skuId);
    R exitSkuInfo(Pms_Sku_Info pms_sku_info);//修改sku信息
    List<Pms_Sku_Info> getQueryByThree();
}
